package p2pscrabble;

import javax.swing.JOptionPane;

public class InfoWindow extends JOptionPane {
	public InfoWindow(int type, String title, String content) {
		if (type == 1)
			showMessageDialog(null, content, title, JOptionPane.OK_OPTION);

		// exit the program
		else if (type == 100) {
			showMessageDialog(null, content, title, JOptionPane.OK_OPTION);
			System.exit(0);
		}
	}
}